import { postAction, getAction, deleteAction } from '@/util/request'

export function findRoles() {
  return getAction('/sys/role/findRoles')
}

export function findList(data) {
  return postAction('/sys/role/findList', data)
}

export function findAllMenuList() {
  return getAction('/sys/role/findAllMenuList')
}

export function addOrUpdate(data) {
  return postAction('/sys/role/addOrUpdate', data)
}

export function findSysRoleById(data) {
  return getAction('/sys/role/findSysRoleById', data)
}

export function deleteSysRoleById(data) {
  return deleteAction('/sys/role/deleteSysRoleById', data)
}
